package homework34;

public class SearchContext2 extends SearchContext{
    @Override
    public void search(String key) {
        if(key == "key2"){
            System.out.println("在PHOENIX中找到内容...");
        }else if(this.successor != null){
            this.successor.search(key);
        }else {
            System.out.println("未查到相关的内容，进行下一项查询环境...");
        }
    }
}
